<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/api.css" />
		<link rel="stylesheet" type="text/css" href="../../css/style.css" />
		<style type="text/css">
			/*校验结果*/
			html,body { background: #F7F7F7; }
			.result{ padding: 1.25rem 0 1.10rem; text-align: center; color: #666; font-size: 0.26rem; line-height: 0.40rem; background-color: #fff;}
			.result img{ margin:0 auto; width: 3.20rem;}
			.result b{ display:block; font-size: 0.38rem; color: #121212; padding-top: 0.50rem; line-height: 1.10rem;}
			.result_btns{ padding-top: 1.20rem;}
			.result_btns a{ display:block; margin: 0 auto; width: 2.80rem; height: 0.80rem; line-height: 0.80rem; text-align: center; border-radius: 0.40rem; font-size: 0.32rem; color: #fff; background-color: #3262F1;}

		</style>
	</head>
	<body>
		<!--校验结果start-->
		<div class="result">
		  <img id="icon" src="images/img_13.png" alt="" />
			<b id="title"></b>
			<p id="msg"></p>
		</div>
		<div class="result_btns">
			<a href="javascript:;" tapmode id="login-btn" onclick="closeWin();">返回登录</a>
		</div>
		<!--校验结果end-->
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript">
		var winName = '';//返回的窗口名
		var changestyle = 0;
		apiready = function() {
			api.parseTapmode();
			console.log('../../image/'+api.pageParam.icon);
			$api.attr($api.byId('icon'),'src','../../image/'+api.pageParam.icon);
			$api.text($api.byId('title'),api.pageParam.title);
			$api.html($api.byId('msg'),api.pageParam.msg);
			$api.text($api.byId('login-btn'),api.pageParam.btntxt);
			winName = api.pageParam.winname;
			changestyle = api.pageParam.changestyle;
		}
		function closeWin(){
			if(changestyle == 1)
			{
				if (api.systemType == "ios") {
					api.setStatusBarStyle({
						style: 'light'
					});
				}
			}
			console.log(winName);
			api.closeToWin({
				name: winName
			});
		}
	</script>
</html>